|
|
|
|
- Two-factor authentication
<WBadminAuth variable>.ListApplication (Function) In french: <Variable adminWBAuth>.ListeApplication Returns the list of applications on a WEBDEV Application Server, for a given account and a given type. login is WBAdminAuth
login.ServerAddress = "http://xxxx"
login.User = "myuser"
login.Password = "mypassword"
Applications is array of WBAdminApplication
Applications = login.ListApplication()
FOR i = 1 _TO_ Applications.Count
Trace(Applications[i].Name)
END
Syntax
<Result> = <WEBDEV Application Server>.ApplicationList([<Owner account> [, <Application type>]])
<Result>: WLanguage array Array of WBAdminApplication variables containing the list of requested applications. <WEBDEV Application Server>: WBAdminAuth variable Name of the WBAdminAuth variable that describes the server and the administrator account used to query the WEBDEV Application Server. <Owner account>: Optional character string Name of the owner account whose applications are to be listed. If this parameter is an empty string ("") or "*", all the applications on the server will be listed. <Application type>: Optional Integer constant Type of application to list: | | WBAdminTypeSite | WEBDEV website. | WBAdminTypeRESTWebservice | REST web services. | WBAdminTypeSOAPWebservice | SOAP web services. | WBAdminTypeWebSocket | WebSockets. |
If this parameter is not specified, all application types will be listed. Remarks New in version 2024Two-factor authentication You can enable two-factor authentication for an account through the Remote WEBDEV administrator. Two-factor authentication requires a unique code to verify the user's identity. This code can be received by email or via an Authenticator app. When you use WEBDEV Application Server functions, you may encounter authentication errors if the account uses two-factor authentication. Two cases must be taken into account: - the function returns a boolean and <Result> is False. To check whether the error concerns authentication, it is necessary to check the value of Variable ErrorOccurred and the value returned by the ErrorInfo function.
- the function does not return a boolean. To determine if the error is due to the authentication process, the following conditions must be met:
To fix this error: - Create a window/page where users can enter their verification code.
- If an error occurs due to two-factor authentication:
- Open the verification code input window.
- Users automatically receive the authentication code according to the method chosen in the Remote WEBDEV administrator. They can then enter the code in the window or page.
- Assign the code to the OneTimePassword property of the WBAdminAuth variable.
- Run the function again.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|